package com.itheima.mapper;

import com.itheima.domain.Huangzhe;
import com.itheima.domain.Keshi;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SubscribeMapper {

    //查询科室类别
    @Select("select * from keshi")
    List<Keshi> findKeshi();

    //保存挂号表单
    @Insert("INSERT INTO huangzhe VALUES(null,#{name},#{gender},#{age},#{kid},NULL)")
    void save(Huangzhe huangzhe);

}
